package com.niiwoo.activity.event.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description: 标的状态枚举
 * @Author:LiJian
 * @Date:2017/11/10
 */
@Getter
@AllArgsConstructor
public enum ProjectStatusEventEnum {

    CHECKING((byte) 1, "审核中"),

    COLLECTING((byte) 2, "筹款中"),

    REPAYING((byte) 3, "还款中"),

    FINISH((byte) 4, "已结清"),

    MISCARRY((byte) 5, "流标");

    private Byte status;
    private String desc;

    public static ProjectStatusEventEnum enumOf(int status) {
        for (ProjectStatusEventEnum retEnum : values()) {
            if (retEnum.status == status) {
                return retEnum;
            }
        }
        return null;
    }

}
